package cn.edu.scau.cmi.liangzaoqing.domain;

public class LeafNode {
	
	String name = null;
	
	String type = null;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Override
	public String toString() {
		return "[name]:"+name+"[type]:"+type;
	}

	public boolean equals(LeafNode leafnode) {
		if(this.name==leafnode.getName()&&this.type==leafnode.getType())
			return true;
		else 
			return false;
	}
	
	public boolean isNull() {
		if(this.getName()==null&&this.getType()==null)
			return true;
		else
			return false;
	}
	
}
